package com.stormrage.entity.exam.req;

import java.io.Serializable;

import com.stormragetech.core.entity.Page;

public class ExmExamReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -989315331635495476L;

	// ------------------------------- Fields -------------------------------

	private String question;

	private Integer relateType;

	private Integer relateId;

	private Page page;

	// ------------------------------- Fields -------------------------------

	public ExmExamReq() {

	}

	public ExmExamReq(Integer relateType, Integer relateId) {
		this.relateType = relateType;
		this.relateId = relateId;
	}

	// ------------------------------- Fields -------------------------------

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public Integer getRelateType() {
		return relateType;
	}

	public void setRelateType(Integer relateType) {
		this.relateType = relateType;
	}

	public Integer getRelateId() {
		return relateId;
	}

	public void setRelateId(Integer relateId) {
		this.relateId = relateId;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmExamReq instance(ExmExamReq entity, Integer relateType, Integer relateId, Page page) {
		entity.setRelateType(relateType);
		entity.setRelateId(relateId);
		entity.setPage(page);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : question - " + question + " relateType - " + relateType + " relateId - " + relateId
				+ " page - " + page;
	}

}
